Skip to content

chore: migrate to oxlint#187

Open
olivermrose wants to merge 5 commits intomainfrom
chore/oxlint
Open

chore: migrate to oxlint#187
olivermrose wants to merge 5 commits intomainfrom
chore/oxlint

Conversation

@olivermrose
Copy link
Copy Markdown
Collaborator

No description provided.

Copilot AI review requested due to automatic review settings March 19, 2026 00:31
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR migrates the project’s JavaScript/TypeScript linting from ESLint to oxlint, updating config and adjusting code to satisfy the new linter rules across the SvelteKit/Tauri codebase.

Changes:

  • Replace ESLint with oxlint (new oxlint.config.ts, updated package.json scripts/devDependencies, remove eslint.config.js).
  • Mechanical refactors for lint compliance (e.g., sort()toSorted(), add this: void where needed).
  • Minor config/key reordering in Vite/Svelte config files.

Reviewed changes

Copilot reviewed 15 out of 16 changed files in this pull request and generated 5 comments.

Show a summary per file
File Description
vite.config.js Reorders config and keeps build.target: "esnext"/clearScreen in a new position.
svelte.config.js Reorders preprocess within the config object.
src/routes/settings/+page.svelte Uses toSorted() for category ordering.
src/lib/split-layout.ts Uses toSorted() for candidate scoring without mutation.
src/lib/models/message/user-message.ts Uses toSorted() in cached sorting paths.
src/lib/models/badge.ts Adds this: void to a static method signature.
src/lib/components/ChannelList.svelte Uses toSorted() in derived sorting/grouping logic.
src/lib/completer.svelte.ts Uses toSorted() when sorting completion results.
src/lib/commands/twitch/vips.ts Switches to toSorted() for VIP list output.
src/lib/commands/twitch/unban.ts Adds this: void to exec signature.
src/lib/commands/twitch/mods.ts Switches to toSorted() for moderator list output.
src/lib/commands/built-in/founders.ts Switches to toSorted() for founders list output.
package.json Updates lint scripts and replaces ESLint deps with oxlint deps.
oxlint.config.ts Adds oxlint configuration (categories/options/rules).
eslint.config.js Removes the old ESLint configuration.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review. Take the survey.

user?.vips?.edges
?.flatMap((edge) => (edge.node ? [edge.node.displayName] : []))
.sort() ?? [];
.toSorted() ?? [];
Comment on lines 14 to +17
const founders =
user?.channel?.founders
?.flatMap((founder) => (founder?.user ? [founder.user.displayName] : []))
.sort() ?? [];
.toSorted() ?? [];
Comment on lines 14 to +17
const mods =
user?.mods?.edges
.flatMap((edge) => (edge.node ? [edge.node.displayName] : []))
.sort() ?? [];
.toSorted() ?? [];
"no-control-regex": "allow",
"typescript/adjacent-overload-signatures": "error",
"typescript/no-floating-promises": "allow",
"unicorn/filename-case": ["error", { ignore: ".*\\.svelte$" }],
Comment on lines +69 to +70
"oxlint": "^1.56.0",
"oxlint-tsgolint": "^0.17.0",
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants